<?php /* SVN: $Id: pay_now.ctp 1960 2010-05-21 14:46:46Z jayashree_028ac09 $ */ ?>
<style>
.nganluong-block{
	background: url("<?php echo Router::url('/img/user-sprite.png')?>") no-repeat left -7646px !important;
	height:80px !important;
	width:150px !important;
}
</style> 
<div class="payments order user-profile-form payment-block js-responses js-main-order-block">
<div class="l-curve-top">							
	<div class="r-curve-top">
			<div class="top-bg"></div>
	</div>
						</div>
						<div class="shad-bg-lft clearfix">
							<div class="shad-bg-rgt">
								<div class="shad-bg">
	<div class="main-section">
<div class="donations  user-profile-form round-5 pledge-form donations-block clearfix js-submit-target-block">
 <h2><?php echo $this->Html->link($this->request->data['Project']['name'],array('controller'=>'projects','action'=>'view',$this->request->data['Project']['slug']), array('escape' => false)) ?> &raquo; <?php echo __l('Pay Listing Fee');?></h2>
 <?php echo $this->Form->create('Payment', array('action' =>'project_pay_now', 'class' => 'normal clearfix'));
     echo $this->Form->input('Project.id');
 ?>

    <dl class="list payment-listing-list payment-list dt round-5 clearfix"><?php $i = 0; $class = ' class="altrow"';?>
        <dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __l('Listing Fee');?></dt>
    		<dd<?php if ($i++ % 2 == 0) echo $class;?>><?php echo Configure::read('site.currency').$this->Html->cCurrency($total_amount);?></dd>
    </dl>
	 <fieldset>
		<div class="padd-bg-tl">
			<div class="padd-bg-tr">
				<div class="padd-bg-tmid"></div>
			</div>
		</div>
		<div class="padd-center">
			<h5 class="round-5"><?php echo __l('Select Payment Type');?></h5>
			<?php echo $this->Form->input('payment_gateway_id', array('legend' => false, 'type' => 'radio', 'options' => $gateway_options['paymentGateways'], 'class' => 'js-payment-type')); ?>
			<div class="clearfix">
			<?php if (!empty($gateway_options['paymentGateways'][ConstPaymentGateways::NganLuong])): ?>
                    <div class="js-nganluong-main <?php echo (!empty($this->request->data['Payment']['payment_gateway_id']) && $this->request->data['Payment']['payment_gateway_id'] == ConstPaymentGateways::NganLuong) ? "" : 'hide'?> ">
                      <div class="js-normal-nganluong">
							<div class="pay-paypa-side1 wallet-side1">
								<h3><?php echo __l('Pay With ').ConstPaymentGatewaysName::NganLuong; ?></h3>
								<p class="order-paypal-info"><?php echo __l('This will take you to the NganLuong.vn'); ?></p>
									<?php echo $this->Form->submit(__l('Pay with NganLuong'), array('name' => 'data[Payment][normal]', 'class' => 'nganluong-block'));?>
							</div>
						</div>
					</div>
				<?php endif; ?>
			<?php if (!empty($gateway_options['paymentGateways'][ConstPaymentGateways::Wallet])): ?>
					<div class="js-wallet-connection pay-paypa-side1 wallet-side1 <?php echo (!empty($this->request->data['Payment']['payment_gateway_id']) && $this->request->data['Payment']['payment_gateway_id'] == ConstPaymentGateways::Wallet) ? "" : 'hide'?>">
						<?php if(!empty($user_info['User']['available_wallet_amount'])):?>
							<p class="available-balance js-user-available-balance {'balance':'<?php echo $user_info['User']['available_wallet_amount']; ?>'}"><?php echo __l('Your available balance:').' '. Configure::read('site.currency').$user_info['User']['available_wallet_amount'];?></p>
						<?php endif;?>
						<h3><?php echo __l('Pay by Wallet'); ?></h3>
						<div class="clearfix connected-paypal-block">
							<?php echo $this->Form->submit(__l('Pay by Wallet'), array('name' => 'data[Payment][wallet]', 'class' => ' js-update-order-field wallet-button'));?>
						</div>
					</div>
				<?php endif; ?>
        	<?php if (!empty($gateway_options['paymentGateways'][ConstPaymentGateways::PayPal])): ?>
                    <div class="js-paypal-main <?php echo (!empty($this->request->data['Payment']['payment_gateway_id']) && $this->request->data['Payment']['payment_gateway_id'] == ConstPaymentGateways::PayPal) ? "" : 'hide'?> ">
                      <div class="js-normal-paypal">
							<div class="pay-paypa-side1 wallet-side1">
								<h3><?php echo __l('Pay With ').ConstPaymentGatewaysName::PayPal; ?></h3>
								<p class="order-paypal-info"><?php echo __l('This will take you to the paypal.com'); ?></p>
									<?php echo $this->Form->submit(__l('Pay with PayPal'), array('name' => 'data[Payment][normal]', 'class' => 'paypal-block  '));?>
							</div>
						</div>
					</div>
				<?php endif; ?>
				</div>
		</div>
		<div class="padd-bg-bl">
			<div class="padd-bg-br">
				<div class="padd-bg-bmid"></div>
			</div>
		</div>

	</fieldset>
	<?php echo $this->Form->end();?>
</div>
</div>
	</div>
							</div>
						</div>
						<div class="l-curve-bot">							
							<div class="r-curve-bot">
								<div class="bot-bg"></div>
							</div>
						</div>
</div>